<?php
/*
 * @o: ========================================================
 * @Created By: VsCode
 * @Author: Fu
 * @name: 管理员控制器
 * @LastEditTime: 2021-05-12 14:14:15
 * @Date: 2021-05-11 10:43:34
 * @u: ========================================================
 */

namespace app\admin\model;

use think\Model;
use app\admin\model\goods\Goods;
class OrderChild extends Model
{
    // 表名
    protected $name = 'order_child';
    protected $resultSetType = 'collection';

    public function goods()
    {
        return $this->hasOne(Goods::class,'id','goods_id');
    }
}
